package com.neutech.service.impl;
import com.neutech.mapper.TestMapper;
import com.neutech.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;
    @Override

    public void addTest()
        {
            Map<String,Object>map =new HashMap<>();
            //map.put("code","121079");
            map.put("name","甲肝检查");
            map.put("room","检验科");
            map.put("money","100");
            Integer a=testMapper.addTest(map);
            System.out.println(map.get("code"));
        }


    public List<Map<String, Object>> queryTestList()
    {
        System.out.println(testMapper.queryTestList());
        return testMapper.queryTestList();

    }

    @Override
    public void updataTestByCode(Map<String, Object> map) {

    }
}
